'use strict';
var clientControllers = angular.module('clientControllers');

clientControllers
    .controller('CmsContactUsCtrl', ['$rootScope', '$scope', '$routeParams', 'Subscription', 'ContactUsOpt', 'ContactUs',
        function ($rootScope, $scope, $routeParams, Subscription, ContactUsOpt, ContactUs) {
            var viewPath = 'views/app/contactUs/' + $rootScope.CurrentSub.template + '/';

            $scope.showContactUs = function() {
                $scope.contactUsContent = viewPath + 'contactUs-detail.html';
                var json = ContactUsOpt.opt({action: 'queryContactUsBySubId', subId: $rootScope.CurrentSub.id},function() {
                    $scope.item = json.data.contactUs;
                });
            }
            $scope.showContactUs();

    }]);




